<%@ page import="com.moke.product.Product" %>

<div class="splitcontentleft">
	<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productCode', 'error')} required">
	<label for="productCode">
		<g:message code="product.productCode.label" default="Product Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="productCode" required="" value="${productInstance?.productCode}"/>
	</div>

	<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productName', 'error')} required">
		<label for="productName">
			<g:message code="product.productName.label" default="Product Name" />
			<span class="required-indicator">*</span>
		</label>
		<g:textField name="productName" required="" value="${productInstance?.productName}"/>
	</div>

	<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productSpec', 'error')} ">
		<label for="productSpec">
			<g:message code="product.productSpec.label" default="Product Spec" />
			
		</label>
		<g:textField name="productSpec" value="${productInstance?.productSpec}"/>
	</div>

	<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productDes', 'error')} " style="clear:both;width:98%;">
		<label for="productDes">
			<g:message code="product.productDes.label" default="Product Des" />
		</label>
		<g:textArea name="productDes" cols="40" rows="5" value="${productInstance?.productDes}" style="width:60%;"/>
	</div>
</div>
<div class="splitcontentright">
		<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'stockNum', 'error')} required">
	<label for="stockNum">
		<g:message code="product.stockNum.label" default="Stock Num" />
		<span class="required-indicator">*</span>
	</label>
		<g:field type="number" name="stockNum" required="" value="${fieldValue(bean: productInstance, field: 'stockNum')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'unit', 'error')} ">
		<label for="unit">
			<g:message code="product.unit.label" default="Unit" />
			
		</label>
		<g:textField name="unit" value="${productInstance?.unit}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productPackage', 'error')} ">
		<label for="productPackage">
			<g:message code="product.productPackage.label" default="Product Package" />
			
		</label>
		<g:textField name="productPackage" value="${productInstance?.productPackage}"/>
	</div>
	<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'price', 'error')} required">
		<label for="price">
			<g:message code="product.price.label" default="Price" />
			<span class="required-indicator">*</span>
		</label>
		<g:field type="number" name="price" required="" value="${fieldValue(bean: productInstance, field: 'price')}"/>
	</div>
</div>


